﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminPanel/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Domain.PrinterCounter>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Counters
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Printer counter entries</h2>

    <table>
        <tr>
            
            <th>
                ID
            </th>
            <th>
                Date
            </th>
            <th>
                Color Counter
            </th>
            <th>
                Black Counter
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            
            <td>
                <%: item.PrinterCounterId %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.Date) %>
            </td>
            <td>
                <%: item.ColorCounter %>
            </td>
            <td>
                <%: item.BlackCounter %>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "EditCounterEntry", new { id=item.PrinterCounterId },new { @class = "icon-link edit-link" } )%> 
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Add counter entry", "AddCounterEntry",null, new { @class = "icon-link create-link" }) %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

